package com.tourism.domain.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.tourism.core.mybatis.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 评论实体类
 *
 * @author lucky
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class Comment extends BaseEntity {

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 景点id
     */
    private Long attractionId;

    /**
     * 评论内容
     */
    private String content;

    /**
     * 状态
     */
    private String status;  //PENDING, APPROVED, REJECTED

    @TableField(exist = false)
    private String avatar;

    @TableField(exist = false)
    private String username;

    @TableField(exist = false)
    private String realName;

    @TableField(exist = false)
    private String attractionName;
}